import java.util.Scanner;

// Starting from point (0,0) on a plane, we have written all non-negative
// integers 0, 1, 2,... as shown in the figure. For example, 1, 2, and 3
// has been written at points (1,1), (2,0), and (3, 1) respectively and
// this pattern has continued.You are to write a program that reads the
// coordinates of a point (x, y), and writes the number (if any) that has
// been written at that point. (x, y) coordinates in the input are in the
// range 0...10000.
// Input:
// 3
// 4 2
// 6 6
// 3 4
//
// Output:
// 6
// 12
// No Number

public class NSTEPS {
	// observe the numbers, you will find four types
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int t = s.nextInt();
		while (t-- > 0) {
			int x = s.nextInt();
			int y = s.nextInt();

			if (x == y + 2) {
				if (x % 2 == 0) {
					System.out.println(x * 2 - 2);
				} else {
					System.out.println(((x - 1) * 2) - 1);
				}
			} else if (x == y) {
				if (x % 2 == 0) {
					System.out.println(x * 2);
				} else {
					System.out.println(((x - 1) * 2) + 1);
				}
			} else {
				System.out.println("No Number");
			}
		}
		s.close();
	}
}
